feat: agent-deck session approve command for Codex approval prompts#1566
feat: agent-deck session approve command for Codex approval prompts#1566Juoper wants to merge 3 commits into
Conversation
|
Warning Review limit reached
Next review available in: 1 minute Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Committed by Ashesh Goplani
Committed by Ashesh Goplani # Conflicts: # CHANGELOG.md
|
Maintainer validation is complete and this draft is now ready for review. I refreshed it onto current main and added two fail-closed regressions: multi-digit menu options are rejected because the command promises exactly one keypress, and moving the menu highlight no longer counts as the original prompt clearing. All Codex approval tests, CLI compilation, conductor template tests, and sandboxed |
Summary
Adds a prompt-aware command for resolving Codex approval menus without treating the selected option as composer text.
session send <id> "1"sends text followed by Enter. Codex approval menus consume the digit as an immediate key event, so the delayed Enter can land in the resumed turn or the digit can be submitted to the normal composer when prompt state races.The new command detects and revalidates a live numbered approval menu, sends exactly one option key, verifies that the original prompt clears, and never retries the approval blindly.
Syntax
Examples:
Validation
go test ./internal/send -run 'CodexApproval'go test ./cmd/agent-deck -run '^$'go test ./internal/session -run 'TestBridgeTemplate|TestConductor.*Template|TestConductorPrompt'